package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 轮播图表
 * </p>
 *
 * @author
 *
 */
@Getter
@Setter
@ApiModel(value = "Banners对象", description = "轮播图表")
public class Banners implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("轮播图ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("图片URL")
    private String img;

    @ApiModelProperty("链接URL")
    private String linkUrl;

    @ApiModelProperty("排序号")
    private Integer orderNum;

    @ApiModelProperty("状态：1启用，0禁用")
    private Integer status;

    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime time;


}
